package com.examplehub.leetcode.easy;

/** https://leetcode.com/problems/running-sum-of-1d-array/ */
public class RunningSumOf1dArray {
  public static int[] solution1(int[] nums) {
    for (int i = 1; i < nums.length; ++i) {
      nums[i] += nums[i - 1];
    }
    return nums;
  }
}
